package com.ruoyi.system.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单表对象 c_order
 * 
 * @author ruoyi
 * @date 2024-12-30
 */
public class Order extends BaseEntity
{
    private static final long serialVersionUID = 1L;
private List<OrderDetail> orderDetail;

    public List<OrderDetail> getOrderDetail() {
        return orderDetail;
    }

    public void setOrderDetail(List<OrderDetail> orderDetail) {
        this.orderDetail = orderDetail;
    }

    /** 订单id（主键） */
    private String orderId;

    /** 用户id */
    @Excel(name = "用户id")
    private String userId;

    /** 营地id */
    @Excel(name = "营地id")
    private String campId;

    /** 总金额 */
    @Excel(name = "总金额")
    private Long total;

    /** 租赁时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "租赁时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date orderTime;

    /** 二维码qrcode */
    @Excel(name = "二维码qrcode")
    private String qrcode;

    /** 状态 0 购物车中 1 确认订单 2 已付款  3已核销  默认0 */
    @Excel(name = "状态 0 购物车中 1 确认订单 2 已付款  3已核销  默认0")
    private Long status;

    public void setOrderId(String orderId) 
    {
        this.orderId = orderId;
    }

    public String getOrderId() 
    {
        return orderId;
    }
    public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }
    public void setCampId(String campId) 
    {
        this.campId = campId;
    }

    public String getCampId() 
    {
        return campId;
    }
    public void setTotal(Long total) 
    {
        this.total = total;
    }

    public Long getTotal() 
    {
        return total;
    }
    public void setOrderTime(Date orderTime) 
    {
        this.orderTime = orderTime;
    }

    public Date getOrderTime() 
    {
        return orderTime;
    }
    public void setQrcode(String qrcode) 
    {
        this.qrcode = qrcode;
    }

    public String getQrcode() 
    {
        return qrcode;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderId", getOrderId())
            .append("userId", getUserId())
            .append("campId", getCampId())
            .append("total", getTotal())
            .append("orderTime", getOrderTime())
            .append("qrcode", getQrcode())
            .append("status", getStatus())
                .append("orderDetail", getOrderDetail())
            .toString();
    }
}
